package com.iflytek.springboot_medicine.service.impl;

import com.iflytek.springboot_medicine.common.ControllerMethodLog;
import com.iflytek.springboot_medicine.service.ControllerLogRepository;
import org.springframework.stereotype.Service;

@Service
public class ControllerLogServiceImpl {
    private final ControllerLogRepository controllerLogRepository;

    public ControllerLogServiceImpl(ControllerLogRepository controllerLogRepository) {
        this.controllerLogRepository = controllerLogRepository;
    }

    public void saveLog(ControllerMethodLog log) {
        controllerLogRepository.save(log);
    }
}
